package com.rowline.admin.module.study.collections;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * ClassName:HashMapTest
 * Created by 245167
 * on 2017/10/30  30:48
 * description:
 */
public class HashMapTest {

    public static void main(String[] args) {

        ArrayList<Integer> list = new ArrayList<Integer>();
        list.add(2);
        Iterator<Integer> iterator = list.iterator();
        while (iterator.hasNext()){
            Integer integer = iterator.next();
            if(integer == 2){
                list.remove(integer);
            }
        }

    }
}
